﻿
@{
    ViewBag.Title = "Index";
}

<h2>Thống kê doanh số bán hàng theo từng loại</h2>

<fieldset>
    <legend>Lọc theo thời gian</legend>
    @using (Html.BeginForm())
    {
        <div>
            <label>From:</label>
            @Html.TextBox("From")

            <label>To:</label>
            @Html.TextBox("To")

            <button>Lọc</button>
        </div>
    }
    
</fieldset>

<table class="table">
    <tr>
        <th>Category</th>
        <th>Revenue</th>
        <th>Amount</th>
        <th>Min Price</th>
        <th>Max Price</th>
        <th>Average Price</th>
    </tr>
    @foreach (var i in Model)
    {
    <tr>
        <td>@i.Group</td>
        <td>@i.Revenue</td>
        <td>@i.Amount</td>
        <td>@i.MinPrice</td>
        <td>@i.MaxPrice</td>
        <td>@i.AvgPrice</td>
    </tr>
    }
</table>